home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / refwaug.dxr / 00022_REFAdIdxUpdateSection .ls < prev    next >
Encoding:
Text File  |  1996-06-14  |  727 b   |  25 lines

  1. on REFAdIdxUpdateSection
  2.   global REFSpriteCastNums, REFAdVideoList, REFMasterList, REFAdIdxChosenAd, REFChoosen
  3.   repeat with g = 31 to 34
  4.     set REFChoosen to 0
  5.     if rollOver(g) then
  6.       set the castNum of sprite g to the castNum of sprite g + 1
  7.       updateStage()
  8.       repeat while rollOver(g)
  9.         if the mouseDown then
  10.           set REFAdIdxChosenAd to g - 30
  11.           set REFChoosen to 1
  12.           set the castNum of sprite g to the castNum of sprite g - 1
  13.           REFLeave(2)
  14.           updateStage()
  15.         end if
  16.       end repeat
  17.       if REFChoosen = 0 then
  18.         set the castNum of sprite g to the castNum of sprite g - 1
  19.       end if
  20.       updateStage()
  21.     end if
  22.     updateStage()
  23.   end repeat
  24. end
  25.